// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 系统配置列表接口 POST /admin/system/channel_config_lists */
export async function lists(body: any, options?: { [key: string]: any }) {
  return request('/admin/system/channel_config_lists', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    params: body,
    ...(options || {}),
  });
}

/** 更新用户接口 GET /admin/system/channel_config_update */
export async function update(body: any, options?: { [key: string]: any }) {
  return request('/admin/system/channel_config_update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
